﻿@model List<Lion.WeiXin.Core.Models.WeChatMenuModel>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ChildPageJs {
    <script src="/Scripts/WeChat/WeChatMenu.js" type="text/javascript"></script>
}

<div class="titstyle01 clearfix">
    <strong>微信菜单</strong>
</div>
<div class="boxstyle01 clearfix pt25 pb10 pl10">
     <span class="f_l mr10 mt5">同步微信操作：</span>    
    <input type="button" class="btn02 f_l mr10 mt5"  id="GetWeChatMenu" value="获取菜单" />
    <input type="button" class="btn02 f_l mr10 mt5"  id="CreateWeChatMenu" value="发布菜单" />
    <input type="button" class="btn02 f_l mr10 mt5"  id="DelWeChatMenu" value="删除菜单" />
</div>
<div class="boxstyle01 clearfix pt25 pb10 pl10">
    <!-- 菜单编辑区 -->
    <form id="fmSave" name="fmSave" method="post">
        <div class=" wh_in mb10 mr10  clearfix" style="width: 92%;">
            <input type="hidden" id="txtCode" name="Code" value="" />
            <p class="mb10 mr10">
                <label for="menuName">菜单名称：</label>
                <input type="text" id="menuName" name="Name" value="" />
            </p>
            <p class="mb10">
                <label for="sleType">菜单类型：</label>
                <select id="sleType" name="Type">
                    <option value="click">按钮</option>
                    <option value="view">链接</option>
                </select>
            </p>
            <p class="mb10" id="pMenuKey" >
                <label for="">按钮键值：</label>
                <input type="text" id="MenuKey" name="Key" /> (类型为按钮时必填)
            </p>
            <p class="mb10" id="pUrl" >
                <label for="">链接地址：</label>
                <input type="text" id="Url" name="Url" style="width:50%;" /> (类型为链接时必填)
            </p>
            <p class="mb10">
                <input type="button" id="btnSave" class="btn02 f_l mr10 mt5" name="save" value="保存本地" />
                 <input type="button" id="btnDel" class="btn02 f_l mr10 mt5" name="del" value="删除本地" />
            </p>
        </div>
    </form>
    <!-- 菜单展示区 display:none;-->
    @for(int i=1;i<=3;i++)
    {
    <div class="boxstyle01 wh_in mb10 mr10 leftmenu f_l"  style=" width: 30%;">
        <!-- 一级 href="javascript:void(0)"-->
        <dt id="menu_@i">
            <a target='_top' title="" >点击添加 @i</a> 
            <input type="hidden" name="Code_@i" value="@i"/>
        </dt>
        <!-- 二级 -->
        @for(int j=1;j<=5;j++)
        {
            <dd id="menu_@(i.ToString()+j.ToString())">
                &gt;&nbsp;
                <a target='_top' title=""  href="javascript:void(0)">点击添加 @(i.ToString()+j.ToString())</a> 
                <input type="hidden" name="Code_@(i.ToString()+j.ToString())" value="@(i.ToString()+j.ToString())"/>
            </dd>
        }
     </div>
    }

    @* <div class="boxstyle01 wh_in mb10 mr10 leftmenu f_l" style="width:30%;">
             <!--中间-->
              <dt class=" " id="dd1">
           <input type="text" />
        </dt> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
         </div>
         <div class="boxstyle01 wh_in mb10 mr10 leftmenu f_l" style="width:30%;">
             <!--左边-->
        <dt class=" " id="dd1">
           <input type="text" />
        </dt> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
             <dd class="dd1"> &gt;&nbsp;<input type="text" /></dd> 
         </div>*@

</div>

